//
//  SearchModel.m
//  HandheldHospital
//
//  Created by 张鹏的电脑 on 16/2/27.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "SearchModel.h"

@implementation SearchModel

- (instancetype)initWithDic:(NSDictionary *)dict{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dict];
        
    }
    return self;
    
}

+ (instancetype)searchWithDic:(NSDictionary *)dict{
    return [[self alloc] initWithDic:dict];
    
    
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
+ (NSMutableArray *)search{
    NSArray *array = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"yisheng.plist" ofType:nil]];
    
    NSMutableArray *arrayM = [NSMutableArray array];
    
    for (NSDictionary *dict in array) {
        [arrayM addObject:[self searchWithDic:dict]];
        
    }
    return arrayM;
    
}



@end
